﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace yaip.Filters.PixelGroup {
    public class GaussianBlur : PixelGroupFilter{

        public GaussianBlur() {
            convolutionMatrix = new ConvolutionMatrix(new int[3, 3]{
                {1,2,1},
                {2,4,2},
                {1,2,1}});
            convolutionMatrix.setFactor(16);
            convolutionMatrix.setOffset(0);
        }
        
        
        public override bool apply(Bitmap image) {
            return Convolution.ConvolutionRadius1(image, convolutionMatrix);
        }
    }
}
